x11: Try harder to find a core pointer
authorMatthias Clasen <mclasen@redhat.com>
Mon, 16 Nov 2015 23:31:37 +0000 (18:31 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 16 Nov 2015 23:34:18 +0000 (18:34 -0500)
commitc659292940f0fec924caf7f6a25b842593be0522
treeceb1155567d526ea5cc0afc36e168edfccbd93e0
parente24c248013b6d669814a3890a02d5c6512b5f77a
x11: Try harder to find a core pointer

We currently just look for a master device with input source MOUSE.
After recent changes to the way input devices are classified, xwayland
on my system comes up with a virtual core pointer that has input
source TOUCHSCREEN. This was causing assertion failures. Be a little
more careful and accept a touchscreen as core pointer, if there is
no mouse.
gdk/x11/gdkdisplay-x11.c